<template>
    <div class="app">
        <div id="none" v-if="list.length==0">您没发起过任何团购</div>
        <div id="list" v-else>
            <div class="item" v-for="(item,index) in list">
                <div class="info">
                    <div class="title">--团购信息--</div>
                    <div class="line">商品名称:{{item.goods_name}}</div>
                    <div class="line">商品原价:￥{{item.goods_price}}</div>
                    <div class="line">拼团单价:￥{{item.price}}</div>
                    <div class="line">奖励积分:{{item.single_integral}}</div>
                    <div class="line">奖励佣金:￥{{item.single_brokerage}}</div>
                    <div class="line">人数:{{item.current_number}}/{{item.number}}</div>
                    <div class="line">开始时间:{{item.start_datetime}}</div>
                    <div class="line">结束时间:{{item.end_datetime}}</div>
                    <div class="line">团购状态:{{item.status_str}}</div>
                </div>
                <div class="bottom">
                    <div class="btn" @click="prefinish(item.id)">提前成团</div>
                    <div class="btn" @click="precancel(item.id)">提前终止</div>
                </div>
            </div>
        </div>
        <router-link class="release_btn" to="/pages/group_go/release">发起团购</router-link>
    </div>
</template>
<script src="./main.js"></script>
<style lang="less" src="./main.less" scoped></style>
